package com.sannuo.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sannuo.common.domain.MedicalReport;
import com.sannuo.common.domain.vo.MedicalReportVo;
import com.sannuo.system.dao.MedicalReportMapper;
import com.sannuo.system.service.MedicalReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalReportServiceImpl extends ServiceImpl<MedicalReportMapper, MedicalReport> implements MedicalReportService {

    @Autowired
    private MedicalReportMapper medicalReportMapper;

    @Override
    public List<MedicalReport> selectMedicalReport(MedicalReportVo medicalReportVo) {
        return medicalReportMapper.selectMedicalReport(medicalReportVo);
    }

    @Override
    public List<MedicalReport> selectMedicalReportById(Integer reportId) {

        return medicalReportMapper.selectMedicalReportById(reportId);
    }

    @Override
    public int updateMedicalReportById(MedicalReport medicalReport) {
        return medicalReportMapper.updateMedicalReportById(medicalReport);
    }
}
